package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.entity.crm.CrmGoods;
import com.nuoniu.sibanyun.entity.crm.bo.GoodsOrderDetailBo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 客户商品表 Mapper 接口
 * </p>
 *
 * @author baiqiang
 * @since 2020-07-17
 */
@Component
@Mapper
public interface CrmGoodsMapper extends BaseMapper<CrmGoods> {

    /**
     * 根据 公司ID 查询 产品信息
     * @param companyId
     * @return
     */
    CrmGoods getCrmGoodsByCompanyId(Integer companyId);

    /**
     * 查询 话费套餐商品
     * @return
     */
    List<GoodsOrderDetailBo> pageGoodsSetting(Page page);

}
